package top.yxf.spring.test.bean.service;

import top.yxf.spring.test.bean.dao.UserDao;

public class UserService {

    private String name;

    private String userId;

    private UserDao userDao;

    public UserService() {

    }

    public UserService(String name) {
        this.name = name;
    }

    public String queryUser() {
        System.out.println("query user info  " + userDao.queryUserName(userId));
        return "query user info" + name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
